package eip.chapter5.sequence;

import java.util.ArrayList;

public class CheckoutBill {

	private String totalBillID;
	private Double totalAmount;
	private String guestName;
	private ArrayList<Bill> billList;
	public static final String SB_NAMESPACE = "http://eipinaction.com/sleepingbeauty/checkoutbill";
	
	public ArrayList<Bill> getBillList() {
		return billList;
	}
	public void setBillList(ArrayList<Bill> billList) {
		this.billList = billList;
	}
	public String getGuestName() {
		return guestName;
	}
	public void setGuestName(String guestName) {
		this.guestName = guestName;
	}
	public Double getTotalAmount() {
		return totalAmount;
	}
	public void setTotalAmount(Double totalAmount) {
		this.totalAmount = totalAmount;
	}
	public String getTotalBillID() {
		return totalBillID;
	}
	public void setTotalBillID(String totalBillID) {
		this.totalBillID = totalBillID;
	}
	
	/**
	 * Constructs a <code>String</code> with all attributes
	 * in name = value format.
	 *
	 * @return a <code>String</code> representation 
	 * of this object.
	 */
	public String toString() {
	    final String TAB = "    ";
	    
	    return "CheckoutBill ( "
	        + super.toString() + TAB
	        + "totalBillID = " + this.totalBillID + TAB
	        + "totalAmount = " + this.totalAmount + TAB
	        + "guestName = " + this.guestName + TAB
	        + " )";
	}
}
